package com.vmj.natives.sun.misc;/**
 * Created by yangshoujun on 2018/3/20 上午10:54.
 */

import com.vmj.natives.NativeMethod;
import com.vmj.natives.Registry;
import com.vmj.rtda.Frame;
import com.vmj.rtda.OperandStack;

/**
 * 功能描述:
 * <p/>
 * 创建人: yangshoujun
 * <p/>
 * 创建时间:  2018/3/20 上午10:54.
 * <p/>
 * Copyright (c) 深圳市牛鼎丰科技有限公司-版权所有
 */
public class Signal {

    public static final java.lang.String jlClass = "sun/misc/Signal";

    public static void init() {
        Registry.register(jlClass, "findSignal", "(Ljava/lang/String;)I", new NativeMethod() {
            public void execute(Frame frame) {
                OperandStack stack = frame.getOperandStack();
                stack.pushInt(0);
            }
        });

        Registry.register(jlClass, "handle0", "(IJ)J", new NativeMethod() {
            public void execute(Frame frame) {
                OperandStack stack = frame.getOperandStack();
                stack.pushLong(0);
            }
        });
    }
}
